package com.ximcontroller.models;

import java.util.HashMap;
import java.util.Observable;

public class Project extends Observable implements java.io.Serializable
{
	static final long serialVersionUID = 200911271940L;
	
	int id;
	String name;
	String description;
	
	HashMap<Integer, Session> sessions;
	
	
	public Project()
	{
	}
	
	public int getID()
	{
		return this.id;
	}
	
	public void setID(int id)
	{
		this.id = id;
		this.notifyObservers();
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
		this.notifyObservers();
	}
	
	public String getDescription()
	{
		return this.description;
	}
	
	public void setDescription(String description)
	{
		this.description = description;
		this.notifyObservers();
	}
	
	public void addSession(Session s)
	{
		this.sessions.put(s.getID(), s);
		this.notifyObservers();
	}
	
	public void removeSession(int id)
	{
		this.sessions.remove(id);
		this.notifyObservers();
	}
	
}
